package com.sj.common.lang;

/**
 * Created with IntelliJ IDEA.
 * User: xiaoqi
 * Date: 2021-08-02
 * Time: 上午 11:06
 * Description: 常量类
 *
 * @author xiaoqi
 */
public class Const {

    /**
     * Token前缀
     */
    public static final String TOKEN_PREFIX = "Bearer ";

    /**
     * 验证码key
     */
    public final static String CAPTCHA_KEY = "captcha";

    /**
     * 登录请求url
     */
    public final static String LOGIN_URL = "login";

    /**
     * POST请求
     */
    public final static String POST_METHOD = "POST";

    /**
     * 问题
     */
    public final static String ARTICLE_QUESTION = "question";

    /**
     * 博客
     */
    public final static String ARTICLE_BLOG = "blog";

    /**
     * 想法
     */
    public final static String ARTICLE_IDEA = "idea";

    /**
     * 文章
     */
    public final static String ARTICLE = "article";

    /**
     * 评论
     */
    public final static String COMMENT = "comment";

    /**
     * 回答
     */
    public final static String ANSWER = "answer";

    /**
     * 用户
     */
    public final static String USER = "user";

    /**
     * 作者
     */
    public final static String AUTHOR = "author";

    /**
     * 冒号
     */
    public final static String COLON = ":";

    /**
     * 足迹
     */
    public static final String FOOTPRINT = "footprint";

    /**
     * 文章数量字典表名字
     */
    public static final String ARTICLE_NUM_DICT = "article_num";

    /**
     * 回答数量
     */
    public static final String ANSWER_NUM = "answer_num";

    /**
     * 关注问题数量
     */
    public static final String ATTENTION_QUESTION_NUM = "attention_question_num";

    /**
     * 提问数量
     */
    public static final String QUESTION_NUM = "question_num";

    /**
     * 博客数量
     */
    public static final String BLOG_NUM = "blog_num";

    /**
     * 想法数量
     */
    public static final String IDEA_NUM = "idea_num";

    /**
     * 收藏数量
     */
    public static final String COLLECT_NUM = "collect_num";

    /**
     * 足迹数量
     */
    public static final String FOOTPRINT_NUM = "footprint_num";

    /**
     * 推荐
     */
    public static final String RECOMMEND_ARTICLE = "recommend_article";

    /**
     * 热门
     */
    public static final String HOT_ARTICLE = "hot_article";

    /**
     * 关注
     */
    public static final String ATTENTION_AUTHOR_ARTICLE = "attention_author_article";

    /**
     * 我的
     */
    public static final String MINE_ARTICLE = "mine_article";

    /**
     * 标签前缀
     */
    public static final String TAG_PREFIX = "sj_know_tag_prefix" + Const.COLON;

    /**
     * 用户id前缀
     */
    public static final String USER_ID_PREFIX = "sj_user_id_prefix" + Const.COLON;

    /**
     * 搜索关键字前缀
     */
    public static final String SEARCH_KEYWORD_PREFIX = "sj_search_key_word_prefix" + Const.COLON;

    /**
     * 所有菜单
     */
    public static final String All = "all_menu";

    /**
     * 目录值
     */
    public static final Integer MENU_CATALOG = 0;

    /**
     * 菜单值
     */
    public static final Integer MENU_MENU = 1;

    /**
     * 按钮值
     */
    public static final Integer MENU_BUTTON = 2;

    /**
     * 最高级菜单父菜单值
     */
    public static final Integer MENU_PARENT = 0;

    /**
     * 分页获取角色列表
     */
    public static final String ROLE_PAGE = "rolePage";
}